#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QPushButton>
#include<QFontDialog>
#include<QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    resize(800,600);

    QPushButton*btn=new QPushButton("字体",this);

    connect(btn,&QPushButton::clicked,[=](){
        bool flag;
        QFont font=QFontDialog::getFont(&flag,QFont("华文行楷",36));


    });

}

MainWindow::~MainWindow()
{
    delete ui;
}

